package smart.src;

import org.openswing.swing.form.client.Form;
import org.openswing.swing.util.java.Consts;

import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;

import javax.swing.SwingConstants;

import org.openswing.swing.client.CodLookupControl;
import org.openswing.swing.client.ComboBoxControl;
import org.openswing.swing.client.ComboBoxVOControl;
import org.openswing.swing.client.DateControl;
import org.openswing.swing.client.GenericButton;
import org.openswing.swing.client.LabelControl;
import org.openswing.swing.client.TextAreaControl;
import org.openswing.swing.client.TextControl;
import javax.swing.border.TitledBorder;

public class CardForm extends Form {
	public CardForm() {
		jbInit();
	}
	private void jbInit() {
		
		setBorder(new TitledBorder(null, "\u041A\u0430\u0440\u0442\u043E\u0447\u043A\u0430", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		GridBagLayout gbl_cardForm = new GridBagLayout();
		gbl_cardForm.columnWidths = new int[]{0, 118, 135, 0, 0, 0, 0};
		gbl_cardForm.rowHeights = new int[] {30, 30, 30, 30, 0};
		gbl_cardForm.columnWeights = new double[]{0.0, 0.0, 1.0, 0.0, 1.0, 1.0, Double.MIN_VALUE};
		gbl_cardForm.rowWeights = new double[]{0.0, 1.0, 1.0, 0.0, Double.MIN_VALUE};
		setLayout(gbl_cardForm);
		
		GenericButton genericButton = new GenericButton();
		genericButton.setText("\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C...");
		GridBagConstraints gbc_genericButton = new GridBagConstraints();
		gbc_genericButton.fill = GridBagConstraints.HORIZONTAL;
		genericButton.setButtonBehavior(Consts.BUTTON_IMAGE_AND_TEXT);
		gbc_genericButton.insets = new Insets(5, 5, 5, 5);
		gbc_genericButton.gridx = 1;
		gbc_genericButton.gridy = 0;
		add(genericButton, gbc_genericButton);
		
		LabelControl lblcntrlNumber = new LabelControl();
		lblcntrlNumber.setHorizontalAlignment(SwingConstants.CENTER);
		lblcntrlNumber.setLabel("\u043F\u0440\u043E");
		lblcntrlNumber.setText("\u041D\u043E\u043C\u0435\u0440");
		GridBagConstraints gbc_lblcntrlNumber = new GridBagConstraints();
		gbc_lblcntrlNumber.anchor = GridBagConstraints.WEST;
		gbc_lblcntrlNumber.insets = new Insets(5, 5, 5, 5);
		gbc_lblcntrlNumber.gridx = 0;
		gbc_lblcntrlNumber.gridy = 1;
		add(lblcntrlNumber, gbc_lblcntrlNumber);
		
		CodLookupControl codLookupControl = new CodLookupControl();
		GridBagConstraints gbc_codLookupControl = new GridBagConstraints();
		gbc_codLookupControl.gridwidth = 2;
		gbc_codLookupControl.insets = new Insets(0, 0, 5, 5);
		gbc_codLookupControl.fill = GridBagConstraints.HORIZONTAL;
		gbc_codLookupControl.gridx = 1;
		gbc_codLookupControl.gridy = 1;
		add(codLookupControl, gbc_codLookupControl);
		
		LabelControl labelControl_8 = new LabelControl();
		labelControl_8.setText("\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B");
		GridBagConstraints gbc_labelControl_8 = new GridBagConstraints();
		gbc_labelControl_8.insets = new Insets(0, 0, 5, 5);
		gbc_labelControl_8.gridx = 3;
		gbc_labelControl_8.gridy = 1;
		add(labelControl_8, gbc_labelControl_8);
		ComboBoxVOControl comboBoxVOControl_1 = new ComboBoxVOControl();
		GridBagConstraints gbc_comboBoxVOControl_1 = new GridBagConstraints();
		gbc_comboBoxVOControl_1.insets = new Insets(0, 0, 5, 5);
		gbc_comboBoxVOControl_1.fill = GridBagConstraints.BOTH;
		gbc_comboBoxVOControl_1.gridx = 1;
		gbc_comboBoxVOControl_1.gridy = 2;
		add(comboBoxVOControl_1, gbc_comboBoxVOControl_1);
		comboBoxVOControl_1.setAttributeName("stat");
		comboBoxVOControl_1.setAttributeName("state");
		comboBoxVOControl_1.setForeignKeyAttributeName("stat");
		comboBoxVOControl_1.setComboValueObjectClassName("src.VO.CardStatusVO");
		comboBoxVOControl_1.setAllColumnVisible(false);
		comboBoxVOControl_1.setVisibleColumn("state",true);
		/*CardStatusComboLocator cardStatusComboLocator = new CardStatusComboLocator(connectionSource);
		comboBoxVOControl_1.setComboDataLocator(cardStatusComboLocator);
		*/
		
		ComboBoxVOControl comboBoxVOControl = new ComboBoxVOControl();
		GridBagConstraints gbc_comboBoxVOControl = new GridBagConstraints();
		gbc_comboBoxVOControl.insets = new Insets(0, 0, 5, 5);
		gbc_comboBoxVOControl.fill = GridBagConstraints.BOTH;
		gbc_comboBoxVOControl.gridx = 4;
		gbc_comboBoxVOControl.gridy = 1;
		add(comboBoxVOControl, gbc_comboBoxVOControl);
		
		LabelControl labelControl_7 = new LabelControl();
		labelControl_7.setText("\u0421\u0442\u0430\u0442\u0443\u0441");
		GridBagConstraints gbc_labelControl_7 = new GridBagConstraints();
		gbc_labelControl_7.anchor = GridBagConstraints.WEST;
		gbc_labelControl_7.insets = new Insets(5, 5, 5, 5);
		gbc_labelControl_7.gridx = 0;
		gbc_labelControl_7.gridy = 2;
		add(labelControl_7, gbc_labelControl_7);
		
		LabelControl labelControl = new LabelControl();
		labelControl.setText("\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435");
		GridBagConstraints gbc_labelControl = new GridBagConstraints();
		gbc_labelControl.insets = new Insets(0, 0, 5, 5);
		gbc_labelControl.gridx = 3;
		gbc_labelControl.gridy = 2;
		add(labelControl, gbc_labelControl);
		
		ComboBoxVOControl comboBoxVOControl_2 = new ComboBoxVOControl();
		GridBagConstraints gbc_comboBoxVOControl_2 = new GridBagConstraints();
		gbc_comboBoxVOControl_2.insets = new Insets(0, 0, 5, 5);
		gbc_comboBoxVOControl_2.fill = GridBagConstraints.BOTH;
		gbc_comboBoxVOControl_2.gridx = 4;
		gbc_comboBoxVOControl_2.gridy = 2;
		add(comboBoxVOControl_2, gbc_comboBoxVOControl_2);
	}

}
